<?php
/**
 * Created by PhpStorm.
 * User: frank
 * Date: 2021-07-27
 * Time: 10:13
 */

namespace App\Observers;

class Token
{
    /**
     * 监听创建事件
     * @param \Laravel\Passport\Token $token
     */
    public function creating(\Laravel\Passport\Token $token)
    {
        $token->created_at = date('Y-m-d H:i:s');
        $token->updated_at = date('Y-m-d H:i:s');
    }
}